'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 升级兵种
 * @author sundbcn@gmail.com (sun debing)
 */

var _ = require('lodash');

var Task = function () {

};

Task.prototype.addStatic = function (static_list, soldier_lv) {
    static_list.upgrade_soldier_lv = static_list.upgrade_soldier_lv || 0;
    static_list.upgrade_soldier_lv++;
};

/**
 * 获取任务进度
 */
Task.prototype.getProgress = function (static_list) {
    return static_list.upgrade_soldier_lv || 0;
};

module.exports = new Task();
